﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Security.Claims;
using System.Threading;
using System.Security;
using System.Security.Permissions;
using System.Web.UI.HtmlControls;
using TaggerApp.Authentication;

namespace TaggerApp
{
    public partial class WebForm1 : System.Web.UI.Page
    {
        public string appName;

        protected void Page_Load(object sender, EventArgs e)
        {
            User myUser = (User)Session["user"];
            if (myUser == null)
            {
                Login.Visible = true;
            }
            else
            {
                Login.Visible = false;
            }

            Global title = new Global();
            title.GetTitleFromDB();
            Page.Title = "Home Page - " + title.appName;

            HtmlGenericControl indexTab = Page.Master.FindControl("index") as HtmlGenericControl;
            indexTab.Attributes.Add("class", indexTab.Attributes["class"] + "active");
        }
    }
}

